<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>商品列表</title>
	<hdjs/>
</head>
<body>
<div class='wrap'>
		<div class='menu_list'>
			<ul>
				<li>
					<a href="{|U:'add'}">添加商品</a>
				</li>
			</ul>
		</div>
		<table class='table2'>
			<thead>
				<tr>
					<td class='w50'>商品GID</td>
					<td>商品名称</td>
					<td>栏目</td>				
					<td>品牌</td>
					<td>货号</td>
					<td>商城价格</td>
					<td>数量</td>
					<td>上架</td>
					<td>热门</td>
			        <td>新品</td>
					<td class='w100'>操作</td>
				</tr>
			</thead>
			<tbody>
				<list from="$data" name="$d">
					<tr style="height:60px">
						<td>{$d.gid}</td>
						<td>{$d.goods_name}</td>
						<td>{$d.cat_name}</td>
						<td>{$d.brand_name}</td>
						<td>{$d.goods_sn}</td>
						<td>{$d.goods_price}</td>
						<td>{$d.goods_number}</td>
						<td>{$d.is_on_sale_text}</td>
						<td><if value="$d.is_hot">√<else>×</if></td>
			            <td><if value="$d.is_new">√<else>×</if></td>
						<td>
							<a href="{|U:'edit',array('gid'=>$d['gid'])}">编辑</a> |
							<a href="{|U:'del',array('gid'=>$d['gid'])}" onclick='return confirm("确定删除商品吗")'>删除</a>
							<a href="{|U:'product/manage',array('goods_gid'=>$d['gid'])}">货品</a>
						</td>
					</tr>
				</list>
			</tbody>
		</table>
	<div class='page1'>{$page}</div>	
</div>
</body>
</html>